package com.fcy.teamwork.business.main

import android.os.Bundle
import com.fcy.teamwork.R
import com.fcy.teamwork.business.main.homepage.adapter.HomePageAdapter
import com.fcy.teamwork.base.BaseActivity
import com.fcy.teamwork.databinding.ActivityMainBinding
import com.fcy.teamwork.widget.MediatorForBNVWithVP2

class MainAct : BaseActivity<ActivityMainBinding>() {
    override fun initBinding() = ActivityMainBinding.inflate(layoutInflater)
    private val adapter = HomePageAdapter(this)
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        binding.vpContent.adapter = adapter
        MediatorForBNVWithVP2(
            binding.vpContent,
            binding.btvNavigator,
            intArrayOf(R.id.action_message, R.id.action_taskMarket, R.id.action_mine)
        )
    }

}